<template>
  <textarea id="mytextarea">Hello world</textarea>
  <el-button @click="getconent" type="primary">提交</el-button>
</template>

<script>
export default {
  mounted() {
    tinymce.init({
      selector: "#mytextarea",
      height: 500,
    });
  },
  methods: {
    getconent() {
      console.log(tinymce.activeEditor.getContent());
    },
  },
};
</script>

<style lang="scss" scoped></style>
